/*
 * led.h
 *
 *  Created on: 2012/1/21
 *      Author: mo
 */

#ifndef LED_H_
#define LED_H_

#include "global.h"

#if INECLIPSE
#include "avrio.h"
#else
#include <avr/io.h>
#endif

#define LED0_IO_PORT    DDRC
#define LED0_OUT_PORT   PORTC
#define LED0_PIN        PC0

#define LED1_IO_PORT    DDRD
#define LED1_OUT_PORT   PORTD
#define LED1_PIN        PD0

#define LED2_IO_PORT    DDRD
#define LED2_OUT_PORT   PORTD
#define LED2_PIN        PD1

#define LED3_IO_PORT    DDRD
#define LED3_OUT_PORT   PORTD
#define LED3_PIN        PD4

#define LED4_IO_PORT    DDRD
#define LED4_OUT_PORT   PORTD
#define LED4_PIN        PD5

#define LED5_IO_PORT    DDRD
#define LED5_OUT_PORT   PORTD
#define LED5_PIN        PD6

#define LED6_IO_PORT    DDRD
#define LED6_OUT_PORT   PORTD
#define LED6_PIN        PD7

void led_init(void);

void led_Alloff();

void led_OneOn(unsigned char index);

#endif /* LED_H_ */
